package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.entity.Dish;
import com.itheima.reggie.entity.Employee;

import java.util.List;

public interface DishService extends IService<Dish> {
    /*
        要发送多条sql的复杂业务，我们提供专门的业务方法实现
        新增菜品功能
     */
    void saveDishAndFlavors(DishDto dishDto);

    Page<DishDto> pageDishAndCategoryName(Integer page, Integer pageSize, String name);

    DishDto findDishDtoById(Long id);

    void updateDishAndFlavor(DishDto dishDto);

    List<DishDto> findDishDtoByCategoryId(Long categoryId, Integer status);
}
